package org.custom.spring.boot.security.entity.security;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * Spring-Security相关配置参数
 *
 * @author LiKun
 * @date 2021/11/11 11:26
 */
@Data
@Component
@ConfigurationProperties(prefix = "security.config")
public class SecurityProperties implements Serializable {
    /**
     * 是否开启 '自动登录' 功能
     */
    private boolean openRemember;

    /**
     * 是否开启 '重复登录' 功能
     */
    private boolean allowRepeatLogin;
}
